package butines.core.gui;

import java.awt.Color;
import java.awt.Graphics2D;

/*
public class GUIButton extends GUIClickableComponent {
	
	private Color hoverHighlight = new Color(234, 195, 120);
	private Color hoverShadow = new Color(178, 139, 63);

	private Color highlight = new Color(188, 95, 95);
	private Color shadow = new Color(68, 12, 12);
	private Color background = new Color(109, 40, 40, 245);
	
	private Color disabledHighLight = new Color(188, 188, 188);
	private Color disabledShadow = new Color(68, 68, 68);
	private Color disabledBackground = new Color(109, 109, 109, 245);
	
	protected final GUIText text;
	
	public GUIButton(int x, int y, int w, int h, String str) {
		setPosition(x, y);
		setSize(w, h);
		text = new GUIText(0, 0, str);
		text.setParent(this);
		text.setHalign(0);
		text.setValign(0);
		text.addShadow(1, 1, Color.BLACK);
	}
	
	protected void renderEnabled(Graphics2D g2d) {
		g2d.setColor(background);
		g2d.fillRect(0, 0, getWidth()-1, getHeight()-1);
		Box.line(g2d, highlight, shadow, 0, 0, getWidth(), getHeight());
		text.setPosition(0, 0);
		text.render(g2d);
	}
	
	protected void renderPressed(Graphics2D g2d) {
		g2d.setColor(background);
		g2d.fillRect(0, 0, getWidth()-1, getHeight()-1);
		Box.line(g2d, shadow, highlight, 0, 0, getWidth(), getHeight());
		text.setPosition(1, 1);
		text.render(g2d);
	}
	
	protected void renderHovered(Graphics2D g2d) {
		Box.solid(g2d, hoverShadow, -1, -1, getWidth()+2, getHeight()+2);
		Box.round(g2d, hoverHighlight, -2, -2, getWidth()+4, getHeight()+4, 5);
	}
	
	protected void renderDisabled(Graphics2D g2d) {
		g2d.setColor(disabledBackground);
		g2d.fillRect(0, 0, getWidth()-1, getHeight()-1);
		Box.line(g2d, disabledHighLight, disabledShadow, 0, 0, getWidth(), getHeight());
		text.setPosition(0, 0);
		text.render(g2d);
	}

	public GUIText getText() {
		return text;
	}

}*/
